package cn.ilovese.collect.serviceimpl.report.similaritystrategy;

import cn.ilovese.collect.datamapper.report.ReportMapper;
import cn.ilovese.collect.datamapper.report.TFIDFSimilarityMapper;
import cn.ilovese.collect.po.report.Report;
import cn.ilovese.collect.service.report.similaritystrategy.PictureSimilarityStrategy;
import cn.ilovese.collect.vo.report.ReportFormVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SIFTStrategy implements PictureSimilarityStrategy {
    @Resource
    ReportMapper reportMapper;
    @Resource
    TFIDFSimilarityMapper tfidfSimilarityMapper;

    @Override
    public Double CalcSimilarity(ReportFormVO reportVO, Integer taskid){
        List<Report> reportList = reportMapper.selectByTaskId(taskid);

        String src="";//图片的src，可能得改一下reportVO和图片上传逻辑，不然目前拿不到
        Double res=0.0;//暂时方案：取最大重复度
        for(Report report: reportList){

        }
        return res;
    }
}
